//
//  UIButton+JSCountDown.h
//  NiubilityProject
//
//  Created by Apple on 2018/3/7.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (JSCountDown)
/**
 设置倒计时的间隔和倒计时文案
 
 @param duration 倒计时时间
 @param format 可选，传nil默认为 @"%zd秒"
 */
- (void)js_countDownWithTimeInterval:(NSTimeInterval)duration countDownFormat:(NSString *)format;

/**
 * invalidate timer
 */
- (void)js_cancelTimer;

/**
 处理快速点击
 
 @param duration 休眠多少秒后才能响应事件
 */
-(void)js_sleepDownWithTimeInterval:(NSTimeInterval)duration;
/**
 开始加载动画 通过mansory 设置的布局 设置此方法无效
 */
-(void)js_startLoadingAniamtion;
-(void)js_endLoadingAniamtion;

+ (QMUIButton *)ba_uiHelper_generateDarkFilledButton;

+ (QMUIButton *)ba_uiHelper_generateLightBorderedButton;

+ (QMUIButton *)ba_uiHelper_creatButtonWithTitle:(NSString *)title
                                        selTitle:(NSString *)selTitle
                                      titleColor:(UIColor *)titleColor
                                   titleFontSize:(CGFloat)titleFontSize
                                           image:(UIImage *)image
                                        selImage:(UIImage *)selImage
                                          target:(id)target
                                        selector:(SEL)sel;

+ (QMUIButton *)ba_uiHelper_creatYLButtonWithTitle:(NSString *)title
                                        titleColor:(UIColor *)titleColor
                                   backgroundColor:(UIColor *)backgroundColor
                                            target:(id)target
                                          selector:(SEL)sel;

@end
@interface frameModel : NSObject
@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat w;
@property (nonatomic, assign) CGFloat h;
@end
